package com.wanmait.movie;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//过滤器 监听器 servlet都能使用
//@ServletComponentScan
//开启定时任务
@EnableScheduling
//开启缓存设置
@EnableCaching
//mapper接口
@MapperScan("com.wanmait.movie.mapper")
public class MovieApplication {
    public static void main(String[] args) {
        SpringApplication.run(MovieApplication.class, args);
    }
}